package com.example.petproject.mapper;

import com.example.petproject.entity.dto.CommentListDTO;
import com.example.petproject.entity.dto.PostCommentDTO;
import com.example.petproject.entity.model.PmsComment;
import com.example.petproject.entity.vo.CommentListVO;
import com.github.pagehelper.Page;

public interface PmsCommentMapper {
    int deleteByPrimaryKey(Long id);

    /**
     * 发表评论
     * @param record
     * @return int
     */
    int insertSelective(PmsComment record);

    PmsComment selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PmsComment record);

    /**
     * 查询用户评价列表
     * @param commentListDTO 条件DTO
     * @return Page<CommentListVO>
     */
    Page<CommentListVO> selectComment(CommentListDTO commentListDTO);


}